import datetime
from models.base import *


class DataPool(TimestampMixin, OtherMixin, TenantMixin, UidMixin, BaseModel):
    name = fields.CharField(max_length=50, null=True, description="name")
    mobile = fields.CharField(max_length=50, default="", description="mobile")
    email = fields.CharField(max_length=255, default="", description="email")
    country_code = fields.CharField(max_length=50, null=True, description="country code 86")
    iso_code = fields.CharField(max_length=50, null=True, description="country code CN")
    gender = fields.IntField(null=True, description="0 f, 1 m")
    birth = fields.CharField(null=True, max_length=40, description="birthday")
    lang = fields.CharField(null=True,max_length=40, description="lang")
    data_source = fields.IntField(description="0 import", default=0)
    state = fields.IntField(description="1 default", default=0)
    activate = fields.IntField(description="activate 1", default=0)

    class Meta:
        abstract = False
        table = 'p_data_pool'
        table_description = '数据池'

